#ifndef VIDEOTHREAD_H
#define VIDEOTHREAD_H

#include <QThread>
#include "decodepacket.h"
namespace wxb{
class VideoThread : public QThread
{
public:
    explicit VideoThread(QObject *parent = nullptr);

public:
    void addPktToCache(AVPacket* pkt);
    void run() override;
    bool openDecoder(AVCodecParameters* params);

private:
    bool exitFlag = false;
    std::list<AVPacket*> pktList;

    AVCodecParameters* params = nullptr;
    DecodePacket decode;

};
}

#endif // VIDEOTHREAD_H
